package fr.afcepf.ai89.esharing.entity;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the invisibilite_proprietaire database table.
 * 
 */
@Entity
@Table(name="invisibilite_proprietaire")
@NamedQuery(name="InvisibiliteProprietaire.findAll", query="SELECT i FROM InvisibiliteProprietaire i")
public class InvisibiliteProprietaire implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="ID_INVISIBILITE_PROP")
	private int idInvisibiliteProp;

	@Temporal(TemporalType.DATE)
	@Column(name="DATE_DEBUT_INVISIBILITE_PROP")
	private Date dateDebutInvisibiliteProp;

	@Temporal(TemporalType.DATE)
	@Column(name="DATE_FIN_INVISIBILITE_PROP")
	private Date dateFinInvisibiliteProp;

	@Temporal(TemporalType.DATE)
	@Column(name="DATE_RETRAIT_INVISIBILITE_PROP")
	private Date dateRetraitInvisibiliteProp;

	//bi-directional many-to-one association to Proprietaire
	@ManyToOne
	@JoinColumn(name="ID_UTILISATEUR")
	private Proprietaire proprietaire;

	public InvisibiliteProprietaire() {
	}

	public int getIdInvisibiliteProp() {
		return this.idInvisibiliteProp;
	}

	public void setIdInvisibiliteProp(int idInvisibiliteProp) {
		this.idInvisibiliteProp = idInvisibiliteProp;
	}

	public Date getDateDebutInvisibiliteProp() {
		return this.dateDebutInvisibiliteProp;
	}

	public void setDateDebutInvisibiliteProp(Date dateDebutInvisibiliteProp) {
		this.dateDebutInvisibiliteProp = dateDebutInvisibiliteProp;
	}

	public Date getDateFinInvisibiliteProp() {
		return this.dateFinInvisibiliteProp;
	}

	public void setDateFinInvisibiliteProp(Date dateFinInvisibiliteProp) {
		this.dateFinInvisibiliteProp = dateFinInvisibiliteProp;
	}

	public Date getDateRetraitInvisibiliteProp() {
		return this.dateRetraitInvisibiliteProp;
	}

	public void setDateRetraitInvisibiliteProp(Date dateRetraitInvisibiliteProp) {
		this.dateRetraitInvisibiliteProp = dateRetraitInvisibiliteProp;
	}

	public Proprietaire getProprietaire() {
		return this.proprietaire;
	}

	public void setProprietaire(Proprietaire proprietaire) {
		this.proprietaire = proprietaire;
	}

}